<?php
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );
//print_r($customertypes);
?>
<script type="text/javascript">
	function getDelStr() {
		var delArr = $("#f2 :checkbox:checked");
		if(delArr.length==0)
		{
			alert("请选择你要删除的项!");
			return;
		}
		if(!confirm("确定删除?"))
		{
			return;
		}
		var str = "";
		for(var i=0;i<delArr.length;i++) {
			var del = delArr[i].value;
			str += del;
			str += "/";
		}
		//window.alert(str);
		$("#delStr").val(str);
		//window.alert($("#delStr").val());
		$("#f2").submit();
	}
</script>

<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Channelmanage');//一级目录
										   echo '>';echo __('Channelmanage');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Linkman',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<table width="100%">
	<tr>
		<td width="50"></td>
		<td width="100">
		<a href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/channelmanagemessage/<?php echo $channelmanageid?>">基本信息</a>
		</td>
		<td width="100">
		<a href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/linkmanlist/<?php echo $channelmanageid?>">联系人</a>
		</td>
		<td width="100">
		<a href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/contractmanagementlist/<?php echo $channelmanageid?>">合同管理</a>
		</td>
		<td></td>
	</tr>
</table>
<!--<div>-->
<!--<span><a style="color:blue;float:left;width:150px;" href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/channelmanagemessage/<?php echo $channelmanageid?>">基本信息</a></span>-->
<!--<span><a style="color:blue;float:left;width:150px;" href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/linkmanlist/<?php echo $channelmanageid?>">联系人</a></span>-->
<!--<span><a style="color:blue;float:left;width:150px;" href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/contractmanagementlist/<?php echo $channelmanageid?>">合同管理</a></span>-->
<!--</div>-->
<?php echo $form->create('Channelmanage',array('action'=>'deletelinkman','type'=> 'post','id'=>'f2'));?>
<?php echo $form->hidden('delStr',array('name'=>'id','id'=>'delStr'));?>
<?php echo $form->hidden('channelmanageid',array('name'=>'channelmanageid','id'=>'channelmanageid','default'=>$channelmanageid));?>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><a onclick=getDelStr()><?php echo $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0',
		 									'onclick'=>'getDelStr()'));?>批量删除</a>
		 </td>
		 <td width="100"><a href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/addlinkmaninit/<?php echo $channelmanageid?>"><?php echo $html->image('add.gif', array('alt' =>  __('Add', true),'border'=>'0'));?>
		 			新增联系人</a>
		 </td>
		<td>&nbsp;</td>
	</tr>
</table>
<!--
			<a onclick=getDelStr()><?php echo $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0','title'=> '删除',
		 									'onclick'=>'getDelStr()'));?>批量删除</a>
		 	-->
<!-- 项目状态列表 -->
<div id="nav1" style="width:97%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
		<th width="70px"><?php echo __('Selected');?></th>
		<th ><?php echo __('Companylinkman');//联系人?></th>
		<th ><?php echo __('linkmenenglishName');//英文名?></th>
		<th ><?php echo __('linkmendepartment');//部门?></th>
		<th ><?php echo __('Companylinkposition');//职务?></th>
		<th width="120px"><?php echo __('telephone');//电话?></th>
		<th ><?php echo __('Systemconfigs fax');//传真?></th>
		<th ><?php echo __('linkmenemail');//电子邮箱?></th>
		<th ><?php echo __('linkmenmobilePhone');//手机?></th>
		<th ><?php echo __('Companylinkman').__('otherMessage');//联系人备注?></th>
		<th width="60px"><?php echo __('Linkman isKey');//关键?></th>
		<th colspan="2" width="80px;"><?php echo __('Operate') ?></th>
	</tr>
	<!-- Here's where we loop through our $Notes array, printing out post info --> 
	
	<?php 
	foreach ($results as $datas): 
	
	?>
		<tr class=normal onmouseover='this.className= "over " '
			onmouseup='this.className= "over " '
			onmouseout='this.className= "normal " '>
			<td>
<!-- 批量删除选择 -->				
			<?php echo $form->checkbox($datas['Linkman']['id'], array('value' => $datas['Linkman']['id']));?>
			</td>
			<td title="<?php echo $datas['Linkman']['linkman']; ?>"><?php echo $datas['Linkman']['linkman']; ?></td>
			<td title="<?php echo $datas['Linkman']['englishName']; ?>"><?php echo $datas['Linkman']['englishName']; ?></td>
			<td title="<?php echo $datas['Linkman']['department']; ?>"><?php echo $datas['Linkman']['department']; ?></td>
			<td title="<?php echo $datas['Linkman']['position']; ?>"><?php echo $datas['Linkman']['position']; ?></td>
			<td title="<?php echo $datas['Linkman']['tel']; ?>"><?php echo $datas['Linkman']['tel']; ?></td>
			<td title="<?php echo $datas['Linkman']['fax']; ?>"><?php echo $datas['Linkman']['fax']; ?></td>
			<td title="<?php echo $datas['Linkman']['email']; ?>"><?php echo "<a style='color:blue;text-decoration:none;' href='mailto:".$datas['Linkman']['email']."'>".$datas['Linkman']['email']."</a>" ; ?></td>
			<td title="<?php echo $datas['Linkman']['mobilePhone']; ?>"><?php echo $datas['Linkman']['mobilePhone']; ?></td>
			<td title="<?php echo $datas['Linkman']['memo']; ?>"><?php echo $datas['Linkman']['memo']; ?></td>
			<td><?php if($datas['Linkman']['iskey']==1){echo "是";}else{echo "否";} ?></td>
			<td>
			<?php echo $html->link( $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0')), '/channelmanages/delete/'.$datas['Linkman']['id']."/".$channelmanageid, null, 
			__('Are you sure you want to delete', true) .' '. $datas['Linkman']['linkman'] . '?',array('escape'=>false));  ?> 		
			</td><!--  __('delete', true) 删除、提示 -->
			<td>
			<?php echo $html->link( $html->image('edit.gif', array('alt' =>  __('Edit', true),'border'=>'0')), '/channelmanages/editlinkmaninit/'.$channelmanageid."/".$datas['Linkman']['id'], null,null,
			array('escape'=>false));  ?> 	
			</td><!--  __('edit', true) 修改 -->
		</tr> 
	<?php endforeach; ?>  
</table>
</div>

<!-- 项目状态列表 -->

<?php echo $form->end();?>